from transformers import AutoTokenizer, AutoModelForSequenceClassification
from textattack.models.wrappers import HuggingFaceModelWrapper

model = AutoModelForSequenceClassification.from_pretrained("models/fake")
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
tokenizer.model_max_len = 256
model = HuggingFaceModelWrapper(model, tokenizer=tokenizer)